hcf and lcm by prime factorisation method